#include <stdio.h>
#include <stdlib.h>
#include <string.h>

int main() {
    char *source = "Hello, World!";
    char *destination;
    
    // 动态分配足够的空间来存储 source 字符串
    destination = (char *)malloc(strlen(source) + 1);
    
    if (destination == NULL) {
        fprintf(stderr, "Memory allocation failed\n");
        return 1;
    }
    
    // 拷贝字符串
    strcpy(destination, source);
    
    printf("Source: %s\n", source);
    printf("Destination: %s\n", destination);
    
    // 释放内存
    free(destination);
    
    return 0;
}